
/**		
 * 
 *	uk.co.lmfm.guppy.view.components.alert.AlertPopup
 *	
 *	@version 1.00 | Feb 2, 2010
 *	@author Justin Windle
 *  
 **/
 
package uk.co.lmfm.guppy.view.components.alert 
{
	import uk.co.lmfm.guppy.model.vo.AlertVO;
	import uk.co.lmfm.guppy.view.components.core.PopupView;

	import com.bit101.components.Text;

	import flash.display.Sprite;

	/**
	 * AlertPopup
	 */
	public class AlertPopup extends PopupView 
	{
		//	----------------------------------------------------------------
		//	PRIVATE MEMBERS
		//	----------------------------------------------------------------

		private var _content : Sprite = new Sprite();
		private var _alert : AlertVO;
		private var _text : Text = new Text();

		//	----------------------------------------------------------------
		//	CONSTRUCTOR
		//	----------------------------------------------------------------

		public function AlertPopup(__alert : AlertVO)
		{
			_alert = __alert;
			
			_text.text = __alert.message;
			_text.width = 220;
			_text.height = 80;
			
			_content.addChild(_text);
			
			super(__alert.title, _content, __alert.label);
		}
	}
}
